package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Children implements Serializable {
    private String cno;

    private String clno;

    private String pno;

    private String cimg;

    private String cname;

    private String csex;

    private String cage;

    private String chobby;

    private String cdescribe;

    private Integer cstate;

    private static final long serialVersionUID = 1L;

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getClno() {
        return clno;
    }

    public void setClno(String clno) {
        this.clno = clno;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getCimg() {
        return cimg;
    }

    public void setCimg(String cimg) {
        this.cimg = cimg;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCsex() {
        return csex;
    }

    public void setCsex(String csex) {
        this.csex = csex;
    }

    public String getCage() {
        return cage;
    }

    public void setCage(String cage) {
        this.cage = cage;
    }

    public String getChobby() {
        return chobby;
    }

    public void setChobby(String chobby) {
        this.chobby = chobby;
    }

    public String getCdescribe() {
        return cdescribe;
    }

    public void setCdescribe(String cdescribe) {
        this.cdescribe = cdescribe;
    }

    public Integer getCstate() {
        return cstate;
    }

    public void setCstate(Integer cstate) {
        this.cstate = cstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Children other = (Children) that;
        return (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getClno() == null ? other.getClno() == null : this.getClno().equals(other.getClno()))
            && (this.getPno() == null ? other.getPno() == null : this.getPno().equals(other.getPno()))
            && (this.getCimg() == null ? other.getCimg() == null : this.getCimg().equals(other.getCimg()))
            && (this.getCname() == null ? other.getCname() == null : this.getCname().equals(other.getCname()))
            && (this.getCsex() == null ? other.getCsex() == null : this.getCsex().equals(other.getCsex()))
            && (this.getCage() == null ? other.getCage() == null : this.getCage().equals(other.getCage()))
            && (this.getChobby() == null ? other.getChobby() == null : this.getChobby().equals(other.getChobby()))
            && (this.getCdescribe() == null ? other.getCdescribe() == null : this.getCdescribe().equals(other.getCdescribe()))
            && (this.getCstate() == null ? other.getCstate() == null : this.getCstate().equals(other.getCstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getClno() == null) ? 0 : getClno().hashCode());
        result = prime * result + ((getPno() == null) ? 0 : getPno().hashCode());
        result = prime * result + ((getCimg() == null) ? 0 : getCimg().hashCode());
        result = prime * result + ((getCname() == null) ? 0 : getCname().hashCode());
        result = prime * result + ((getCsex() == null) ? 0 : getCsex().hashCode());
        result = prime * result + ((getCage() == null) ? 0 : getCage().hashCode());
        result = prime * result + ((getChobby() == null) ? 0 : getChobby().hashCode());
        result = prime * result + ((getCdescribe() == null) ? 0 : getCdescribe().hashCode());
        result = prime * result + ((getCstate() == null) ? 0 : getCstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cno=").append(cno);
        sb.append(", clno=").append(clno);
        sb.append(", pno=").append(pno);
        sb.append(", cimg=").append(cimg);
        sb.append(", cname=").append(cname);
        sb.append(", csex=").append(csex);
        sb.append(", cage=").append(cage);
        sb.append(", chobby=").append(chobby);
        sb.append(", cdescribe=").append(cdescribe);
        sb.append(", cstate=").append(cstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}